<template>
  <div>
    <h2>move 组件 --- {{ $route.params.id }}</h2>
    <h3>move 组件 --- {{ id }}</h3>
    <button @click="goback">回退</button>
  </div>
</template>

<script>
export default {
  props: ['id'],
  methods: {
    goback() {
      // 回退
      this.$router.go(-1)
    }
  }
}
</script>

<style>

</style>